package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 设备上下线记录对象 device_status_info
 * //20250214 云计算-智能车联-04-数据统计
 * @author 刘进祥
 * @date 2025-02-14
 */
public class DeviceStatusInfo extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 设备状态 */
    @Excel(name = "设备状态")
    private String status;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 网关设备所在地 */
    @Excel(name = "网关设备所在地")
    private String gatewayLocation;

    /** 产品名称 */
    @Excel(name = "产品名称")
    private String productName;

    /** 上线/下线时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上线/下线时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date onlineOfflineTime;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDeviceName(String deviceName) 
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName() 
    {
        return deviceName;
    }
    public void setGatewayLocation(String gatewayLocation) 
    {
        this.gatewayLocation = gatewayLocation;
    }

    public String getGatewayLocation() 
    {
        return gatewayLocation;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setOnlineOfflineTime(Date onlineOfflineTime) 
    {
        this.onlineOfflineTime = onlineOfflineTime;
    }

    public Date getOnlineOfflineTime() 
    {
        return onlineOfflineTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("status", getStatus())
            .append("deviceName", getDeviceName())
            .append("gatewayLocation", getGatewayLocation())
            .append("productName", getProductName())
            .append("onlineOfflineTime", getOnlineOfflineTime())
            .toString();
    }
}
